$NetBSD: patch-ab,v 1.1.1.1 2002/07/23 12:07:45 agc Exp $
--- include/isapnp/iopl.h	Tue May  8 15:14:21 2001
+++ include/isapnp/iopl.h	Mon Jul 22 07:40:38 2002
@@ -45,6 +45,12 @@
 #endif
 
 /****************************************************************************/
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+#include <sys/types.h>
+#include <machine/bus.h>   
+#include <machine/sysarch.h>   
+#include <machine/pio.h> 
+#else
 #ifdef __DJGPP__
 #if !defined __TURBOC__ && !defined __BORLANDC__
 #include <inlines/pc.h>
@@ -65,6 +71,7 @@
 #include <sys/hw.h>
 #endif /* _OS2_ */
 #endif
+#endif /* !(__NetBSD__ && HAVE_LIBI386) */
 
 /****************************************************************************/
 
